public class TestIf03 {
    public static void main(String[] args){
        /*dint k = (int)(Math.random()*6+1);
        int i = (int)(Math.random()*6+1);
        int j = (int)(Math.random()*6+1);
        int count = i+j+k;
        System.out.println("第一次骰子："+k);
        System.out.println("第二次骰子："+j);
        System.out.println("第三次骰子："+i);
        if(count>15){
            System.out.println("手气好");
        }else if(count>=10){
            System.out.println("手气一般");
        }else {
            System.out.println("手气差");

        }
        System.out.println("点数为："+count);*/
        int age = (int)(100*Math.random());
        System.out.println("年龄为："+age);
        if(age<15){
            System.out.println("还是小孩");
        }else if(age>=15&&age<25){
            System.out.println("已经是青年了");
        }else if(age>=25&&age<45){
            System.out.println("已经是中年了");
        }else if(age>=45&&age<65){
            System.out.println("已经是中老年了");
        }else {
            System.out.println("老年人了");
        }

    }
}
